from pygame.locals import *

class Game(object):
    def __init__(self):
        self._paused = False
        self._gameover = False

    def start(self):
        print 'game start.'
        return True

    def handleEvent(self, eventList):
        for event in eventList:
            if event.type == QUIT:
                self._gameover = True

    def tick(self, deltaTime):
        pass

    def render(self):
        pass

    def end(self):
        print 'game end.'

    def pause(self):
        return self._paused

    def over(self):
        return self._gameover
